
public class Main {
    public static void main(String[] args) {
        MyStringList myStringList = new MyStringList();
        myStringList.creatList();
        myStringList.display();
        System.out.println(myStringList.size());
        System.out.println(myStringList.contains(12));
        System.out.println(myStringList.contains(99));

        myStringList.addLast(12);
        myStringList.addFirst(33);
        myStringList.display();

        try{
            myStringList.addIndex(5,9999);
        }catch(IndexException e){
            e.printStackTrace();
        }
        myStringList.display();

    }
}

